package com.train.mgr.modules.biz.service;

import com.train.mgr.modules.biz.dto.request.LessonReqDTO;
import com.train.mgr.modules.biz.dto.response.LessonDetailRespDTO;
import com.train.mgr.modules.biz.dto.response.LessonListRespDTO;
import com.train.mgr.modules.biz.entity.Lesson;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * <p>
 * 课时表 服务类
 * </p>
 *
 * @author cxg
 * @date 2025-09-30
 */
public interface ILessonService extends IService<Lesson> {

    int delByCoursId(Long coursId);

    LessonDetailRespDTO getDetailById(Long lessonId);

    List<LessonListRespDTO> findList(Long courseId);

    boolean add(LessonReqDTO body);

    boolean update(LessonReqDTO body);

    boolean deleteById(Long lessonId);

    boolean publish(Long lessonId);

    boolean unPublish(Long lessonId);
}
